package cn.edu.tsinghua.thss.alg.closestpair.gui;

import java.awt.Dimension;

import javax.swing.JLabel;

/**
 * Defines the status bar that shows the coordinates of the mouse.
 * 
 * @author
 * 
 */
public class StatusBar extends JLabel {

	/** Creates a new instance of StatusBar */
	public StatusBar() {
		super();
		super.setPreferredSize(new Dimension(100, 30));
		setMessage("Ready");
	}

	/**
	 * Shows the message in the status bar
	 * 
	 * @param message
	 *            the message to show
	 */
	public void setMessage(String message) {
		setText(" " + message);
	}
}
